#include <stdio.h>
#include <stdlib.h>
#include "libdecoder_tp2855.h"
#include "driver_map.h"

int main() {
    int choice;int size = 0;
    driver_map_t * drv = NULL;

    drv = get_driver_map(&size);
    while(1){
    	printf_msg();
    	scanf("%d", &choice);
    	getchar();
    	if(choice >= size)
    		break;
    	else
    		drv[choice].func();
    }
    return 0;
}
